<p>The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in <a href=
<p>This version of XHTML provides a definition of strictly conforming XHTML documents, which are restricted to elements and attributes from the XHTML namespace.</p>
<p>A strictly conforming XHTML 1.1 document is a document that requires only the facilities described as mandatory in this specification. Such a document must meet all the following criteria:</p>
<ol>
<li>
<p>The document must conform to the constraints expressed in <a href="xhtml11_dtd.html#a_xhtml11_dtd">Appendix C</a>.</p>
</li>
<li>
<p>The root element of the document must be <code><html></code>.</p>
</li>
<li>
<p>The root element of the document must designate the XHTML namespace using the <code>xmlns</code> attribute <a href="references.html#ref_xmlns">[XMLNAMES]</a>. The namespace designator for XHTML is
"<code>http://www.w3.org/1999/xhtml</code>".</p>
</li>
<li>
<p>There must be a DOCTYPE declaration in the document prior to the root element. If present, the public identifier included in the DOCTYPE declaration must reference the DTD found in <a href=
"xhtml11_dtd.html#a_xhtml11_dtd">Appendix C</a> using its Formal Public Identifier. The system identifier may be modified appropriately.</p>
<pre>
<!DOCTYPE
html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
</pre>
</li>
</ol>
<p>Here is an example of an XHTML 1.1 document.</p>
<p>Moved to <a href="http://vlib.org/">vlib.org</a>.</p>
</body>
</html>
</pre>
</div>
<p>Note that in this example, the XML declaration is included. An XML declaration like the one above is not required in all XML documents. XHTML document authors are strongly encouraged to use XML
declarations in all their documents. Such a declaration is required when the character encoding of the document is other than the default UTF-8 or UTF-16.</p>
<h2><a id="uaconf">2.2.</a> User Agent Conformance</h2>
<p>A conforming user agent must meet all user agent conformance requirements defined in [<a href="references.html#ref_xhtml_modularization">XHTMLMOD</a>].</p>
<hr />
<div class="navbar">[<a href="introduction.html">previous</a>] [<a href="doctype.html">next</a>] [<a href="Overview.html#toc">table of contents</a>]</div>